package com.example.demo.config;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @description：常量配置文件.
 * @author：lw
 * @since：2023/12/29
 **/
public class ConstantConfig {
    public  static  final  String  tokenFieldName="token";
    public  static  final  Long  token_expire= 24L;
    public  static  final  TimeUnit  token_expire_unit= TimeUnit.HOURS;
    public  static  final  Long  captcha_expire= 2L;
    public  static  final  TimeUnit  captcha_expire_unit= TimeUnit.MINUTES;
    public  static  final  String  redis_login_token_prefix="login token：";
    public  static  final  String  redis_login_PicCaptcha_prefix="PicCaptcha：";
    public  static  final  String  redis_wxBindKey_prefix="wxBindKey：";
    public  static  final  String  redis_login_shortMessageCaptcha_prefix="shortMessageCaptcha：";
    public  static  final  List<String> noLoginUrls= List.of("/doc.html/**","/v3/api-docs/**",
            "/admin/user/loginByAccount","/admin/user/loginByPhone","/admin/user/wxBindToUserAndLogin","/admin/user/getWxQrCodeParams",
            "/admin/user/register","/admin/user/getLoginPicCaptcha","/admin/user/getLoginShortMessageCaptcha");
    public static final String serverUrl="http://127.0.0.1:5000";
    public static final String minio_serverUrl="http://127.0.0.1:9000";
    public static final String minio_username="minioadmin";
    public static final String minio_password="minioadmin";
    public static final String minio_temp_folder="tempFiles";
    public static final String minio_bigFile_folder="bigFiles";
    public static final String minio_buketName="test";
    public static final String fileNameSplitSymbol="@@";   // 分隔符要起好，尽量不要是正则的特殊字符
    public static final String image="image";
    public static final String webUrl="https://www.company.com";
    public static final String webAppid="web_appid";
    public static final String webSecret="web_secret";

    public static final String add="add";
    public static final String delete="delete";
    public static final String update="update";
    public static final String query="query";
    public static final String export="export";
    public static final String Import="Import";
    public static final String upload="upload";
    public static final String download="download";
    public static final String ban="ben";        // 禁用其实没必要，能更新自然能禁用
    public static final String giveAuth="giveAuth";

}
